<?php

namespace app\api\model;

use think\Model;
use think\model\concern\SoftDelete;

class BondLog extends ApiModel
{

    // 表名
    protected $name = 'bond_log';
    
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';

    // 定义时间戳字段名
    protected $createTime = 'create_time';


    public function getBondLog($params = array()){
        $uid = $params['uid'];
        $list = self::where(['member_id' => $uid])->order('create_time desc')->paginate(10);

        return $this->api_success('获取成功',$list);
    }

}
